/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package binh.packet;

import binh.CCommon;
import we.dispatcher.reader.IReadingProcessor;
import we.dispatcher.reader.impl.CStrLenReadProc;
import we.dispatcher.writer.IWritingProcessor;
import we.dispatcher.writer.StrLenWriteProc;

/**
 *
 * @author ADMIN
 */
public class CCommonProcessor
{

    public static final IReadingProcessor UserReadProc = new CStrLenReadProc(CCommon.MAX_USERNAME_LENGTH);
    public static final IReadingProcessor PassReadProc = new CStrLenReadProc(CCommon.MAX_SESSION_LENGTH);
    public static final IWritingProcessor UserWriteProc = new StrLenWriteProc(CCommon.MAX_USERNAME_LENGTH);
    public static final IWritingProcessor PassWriteProc = new StrLenWriteProc(CCommon.MAX_SESSION_LENGTH);
    public static final IWritingProcessor VersionWriteProc = new StrLenWriteProc(CCommon.MAX_VERSION_LENGTH);
}
